import java.io.FileWriter;
import java.io.IOException;

public class	FileWriterDemo{

		public static void main(String args[]){
				FileWriter fw = null;
				try{
					fw = new FileWriter(".\\HW.java");
					for(int i =0; i<1000; i++){
						fw.write(i);
					}
					fw.close();
				}catch(IOException e){
					System.out.println(e);
				}
		}
}